<?php
require('../..//public/zscg.php');
require('../..//public/local.php');
$id=$_GET['id'];
if($_GET['id']==1){
    echo "<script>alert('哎呀！傻逼了吧，还想不让我登录。');window.location.href='/admin/user/index.php'</script>";
    die;
}
$post=array('zhuangtai'=>0);
$res=update($con,'user',$id,$post);
if($res){
    echo "<script>alert('已禁止该用户登录');window.location.href='/admin/user/index.php'</script>";
}else{
    echo "<script>alert('禁止失败');window.location.href='/admin/user/index.php'</script>";
}